<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title><%=h page_title %></title>
  <%= page_header %>
  <%= stylesheet_link_tag "/stylesheets/theme/azure", :media => 'all' %>
  <%= stylesheet_link_tag "/stylesheets/user-styles", :media => 'all' %>
  <%= stylesheet_link_tag "/stylesheets/theme/print", :media => 'print' %>
</head>
<% benchmark "BENCHMARK: layout/body" do %>
<body>
  <div id="container" class="clearfix">
      <div id="header">
        <div id="logo">
          <h1 id="sitename"><%= link_to this_blog.blog_name, this_blog.base_url %></h1>
          <h2 id="subtitle"><%= this_blog.blog_subtitle %></h2>
        </div>
      </div>

      <div id="search"> <%= render :partial => "shared/search" %></div>
      <% benchmark "BENCHMARK: layout/content" do %>

      <div id="content" class="clearfix">
        <div id="main">
          <%= @content_for_layout %>
          <%= javascript_tag "show_dates_as_local_time()" %>
        </div>
        <% end %>
        <div id="sidebar">

            <div id="search-results"></div>
            <% benchmark "BENCHMARK: layout/sidebars" do %>
              <%= render_sidebars %>
            <% end %>

            <%= link_to image_tag("powered.gif"),  "http://www.typosphere.org/", {:class => "powered" } %>
            </div>

            <br clear="all" />
      </div>
      <div id="footer">
        <ul>
          <li><a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0</a></li>
          <li><a href="http://jigsaw.w3.org/css-validator/validator?uri=<%= this_blog.base_url %>">Valid CSS</a></li>
        </ul>
      </div>
  </div>
</body>
</html>
<% end %>
